from math import log2

from math import inf


class Solution:

    def leastMinutes(self, n: int) -> int:
        ans = t = 1
        while t < n:
            t <<= 1
            ans += 1
        return ans


so = Solution()
print(so.leastMinutes(2))
print(so.leastMinutes(10086))
print(so.leastMinutes(100000))
# a = 100000
# print(a.bit_length())